#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int possibleStringCount(string word) {
        int res = 1;
        for (int i = 1; i < word.size(); i++)
        {
            if (word[i] == word[i - 1])
                ++res;
        }
        return res;
    }
};